package com.example.wxai.pijo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 大聊天表，记录总聊天
 * </p>
 *
 * @author author
 * @since 2025-02-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("chat")
public class Chat implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;


    /**
     * 聊天id
     */
    @TableField("chat_id")
    private String chatId;

    /**
     * 用户id
     */
    @TableField("userId")
    private String userId;

    /**
     * 创建时间
     */
    @TableField("creat_time")
    private LocalDateTime creatTime;

    /**
     * 最后一次聊天信息时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;


    /**
     * 聊天标题
     */
    private String title;

    /**
     * 1删
     */
    @TableField("id_delete")
    private Boolean idDelete;


}
